package com.youkeyi.ddy.cloud.common.api.basic.pub.menu;

import com.youkeyi.ddy.cloud.common.api.basic.pub.menu.dto.PublicMenuListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.menu.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * PublicMenuCloudService
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-PUBLIC", fallback = PublicMenuCloudServiceFallback.class)
@RequestMapping("/public/menu")
public interface PublicMenuCloudService {

    /**
     * 查询菜单列表.
     *
     * @param param the param
     * @return the menu list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract PublicMenuListCloudDto query(@RequestBody PublicMenuQueryCloudParam param);

    /**
     * 新增菜单.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody PublicMenuCreateCloudParam param);

    /**
     * 编辑菜单.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody PublicMenuUpdateCloudParam param);

    /**
     * 删除菜单.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody PublicMenuDeleteCloudParam param);
}
